import { useState } from 'react';
import { testInput } from '../test';

export default function Page() {
  const initStyles = [
    {
      border: {
        border: '1px solid #2593ff',
      },
      color: {
        color: '#3584fa',
      },
      title: {
        backgroundColor: '#ecf6ff',
      },
    },
    {
      border: {
        border: '1px solid #f6c94a',
      },
      color: {
        color: '#f6c94a',
      },
      title: {
        backgroundColor: '#fff7e6',
      },
    },
    {
      border: {
        border: '1px solid #ff4d4f',
      },
      color: {
        color: '#ff4d4f',
      },
      title: {
        backgroundColor: '#fff1f0',
      },
    },
    {
      border: {
        border: '1px solid #fa8c16',
      },
      color: {
        color: '#fa8c16',
      },
      title: {
        backgroundColor: '#fff7e6',
      },
    },
    {
      border: {
        border: '1px solid #52c41a',
      },
      color: {
        color: '#52c41a',
      },
      title: {
        backgroundColor: '#f6ffed',
      },
    },
  ];

  // 结果分析列表
  const [business_diagnosis, setBusiness_diagnosis] = useState([] as any);

  // JD输入
  const [jdInputStr, setJdInputStr] = useState(testInput);

  // 附件上传
  const [file_path, setFile_path] = useState('');

  return {
    initStyles,
    business_diagnosis,
    setBusiness_diagnosis,
    jdInputStr,
    setJdInputStr,
    file_path,
    setFile_path,
  };
}
